@include('Layout.header')

<div class="page page-price">
    <div class="wrapper">
        <div class="packages">
            <div class="package-type">
                <div class="head">
                    <p class="title">套餐内容</p>
                </div>
                <div class="items">
                    <div class="item">
                        <p class="title">周套餐</p>
                    </div>
                    <div class="item">
                        <img class="blade1" src="/static/img/img-22.png" >
                        <p class="title">月度套餐</p>
                    </div>
                    <div class="item">
                        <p class="title">季度套餐</p>
                    </div>
                    <div class="item">
                        <p class="title">年度套餐</p>
                    </div>
                </div>
            </div>


            <div class="high-package">
                <div class="head">
                    <img class="blade1" src="/static/img/img-21.png" >
                    <p class="title">高级套餐</p>
                    <ul>
                        <li>IP数量<span>1000万＋</span></li>
                        <li>支持<span>PC端</span>和<span>移动端</span>同时在线</li>
                        <li>全国<span>高级线路</span>，不限带宽</li>
                    </ul>
                </div>


                <div class="items">

                    @if(!empty($data['higt']))
                        @foreach($data['higt'] as $value)
                            <div class="items">
                                <div class="item">
                                    @if(empty($value['price_discount']) || $value['price_discount'] == 0 || $value['desction'] == "-")
	                            		<div class="price">
	                            			<p class="now">暂无</p>
	                            		</div>
	                            	@else
		                                <div class="price">
		                                    <p class="now">￥{{ $value['price_discount'] }}</p>
		                                    <p class="original">原价：{{ $value['price_original'] }}元</p>
		                                </div>
		                                <div class="fetures">
		                                    <ul>
		                                        @if(!empty($value['desction']))
		                                            @foreach($value['desction'] as $item)
		                                                <li>{{ $item }}</li>
		                                            @endforeach
		                                         @endif
		                                    </ul>
		                                </div>
		                                <div class="buy">
		                                    <a  style="cursor:pointer" href="/pay?pay_id={{ $value['id']}}" class="buy-btn" target="_blank">立即购买</a>
		                                </div>
		                            @endif
                                </div>
                            </div>
                        @endforeach
                    @endif

                </div>
            </div>




            <div class="basic-package">
                <div class="head">
                    <p class="title">基础套餐</p>
                    <ul>
                        <li>IP数量<span>1000万＋</span></li>
                        <li>支持<span>PC端</span>在线</li>
                        <li>全国<span>基础线路</span>，不限带宽</li>
                    </ul>
                </div>

                @if(!empty($data['list']))
                    @foreach($data['list'] as $value)
                        <div class="items">
                            <div class="item">
                            	@if(empty($value['price_discount']) || $value['price_discount'] == 0 || $value['desction'] == "-")
                            		<div class="price">
                            			<p class="now">暂无</p>
                            		</div>
                            	@else
	                                <div class="price">
	                                    <p class="now">￥{{ $value['price_discount'] }}</p>
	                                    <p class="original">原价：{{ $value['price_original'] }}元</p>
	                                </div>
	                                <div class="fetures">
	                                    <ul>
	                                        @if(!empty($value['desction']))
	                                            @foreach($value['desction'] as $item)
	                                                <li>{{ $item }}</li>
	                                            @endforeach
	                                         @endif
	                                    </ul>
	                                </div>
	                                <div class="buy">
	                                    <a  style="cursor:pointer" href="/pay?pay_id={{ $value['id']}}" class="buy-btn" target="_blank">立即购买</a>
	                                </div>
	                            @endif
                            </div>
                        </div>
                    @endforeach
                @endif

            </div>
        </div>
    </div>
</div>

@include('Layout.footer')